import request from "@/utils/request";

/**
 * @description 用户相关的 api
 * @returns {AxiosPromise}
 */

// 用户登录
export const login = (data)=> request.post('/admin/login', data)

//  用户登出
export const logout = () => request.post('/admin/logout')

export const getLoginInfo = (data) => request.get('/admin/employe/login/info', data)

export const getUserMenu = ()=> request('/data')

// 查询所有角色
export const getAllRole = ()=> request.get('/admin/role/all');

// 获取用户菜单
export const findUserMenu = () => request.get('/admin/resourceAuthority/findUserMenu')







